﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;

namespace K9Nano.Updater.Client.Logging;

public class DelegateLoggerProvider : ILoggerProvider
{
    public ILogger CreateLogger(string categoryName)
    {
        var main = IocHelper.GetService<MainWindow>();

        return new DelegateLogger(categoryName, main.WriteLog);
    }

    public void Dispose()
    {
    }
}
